﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDf_Funlim_ProjBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDf_Funlim_Proj;

        void Remove(IDf_Funlim_Proj entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDf_Funlim_Proj;



        void Insert(string anniname, string analy_year);

        void GetEditYear(string anniname, string analy_year);

        /// <summary>
        /// 获取资金受限条件养护方案表符合条件的一条数据
        /// </summary>
        /// <param name="anniname">资金模型名称</param>
        /// <param name="rd_class">技术等级</param>
        /// <param name="pci">PCI值</param>
        /// <param name="pqi">PQI值</param>
        /// <returns></returns>
        IDf_Funlim_Proj GetDf_Funlim_Proj(string anniname, string Analy_Year, int rd_class, int pci);

        /// <summary>
        /// 获取规划年度养护需求分析信息
        /// </summary>
        /// <param name="divi_time">规划年度</param>
        /// <param name="mainsegid">决策路段</param>
        /// <returns></returns>
        IDn_Divi_Planning GetDn_Divi_Planning(string anniname,string divi_time, string mainsegid);
    }
}
